/**
 * 
 */
$(function(){
	formBuilder.addUtility({
		type:"text",
		menu:{
			title:"文本输入框",
			cls:"formOption_text"
		},
		opt:{title:"文本名称",isRequired:0},
		editPageTemp:"/formBuilder/utilEditPageTemp/Commom.jsp",
		tempHtml:'<div class="am-form-group">'
			+'<label>文本名称</label>'
			+'<input type="text" class="am-input-sm" placeholder="文本内容">'
			+'<p class="am-form-help">帮助说明...</p>'
			+'</div>',
			onAdd:function(com){
				
			},
			onEdit:function(com){
				
			}
	});

	formBuilder.addUtility({
		type:"textarea",
		menu:{
			title:"多行文本",
			cls:"formOption_textarea"
		},
		tempHtml:'<div class="am-form-group">'
			+'<label>文本名称</label>'
			+'<textarea class="am-input-sm" rows="5">文本内容</textarea>'
			+'<p class="am-form-help">帮助说明...</p>'
			+'</div>',
			onAdd:function(com){
				
			},
			onEdit:function(com){
				
			}
	});
	
	formBuilder.addUtility({
		type:"radio",
		menu:{
			title:"单选框",
			cls:"formOption_radio"
		},
		tempHtml:'<div class="am-form-group">'
			+'<label>选框标题</label>'
			+'<label class="am-radio"><input type="radio">选项一</label>'
			+'<label class="am-radio"><input type="radio">选项二</label>'
			+'<label class="am-radio"><input type="radio">选项三</label>'
			+'</div>',
		onAdd:function(com){
			
		},
		onEdit:function(com){
			
		}
	});
	
	formBuilder.addUtility({
		type:"checkbox",
		menu:{
			title:"多选框",
			cls:"formOption_checkbox"
		},
		tempHtml:'<div class="am-form-group">'
			+'<label>选框标题</label>'
			+'<label class="am-checkbox"><input type="checkbox">选项一</label>'
			+'<label class="am-checkbox"><input type="checkbox">选项二</label>'
			+'<label class="am-checkbox"><input type="checkbox">选项三</label>'
			+'</div>',
			onAdd:function(com){
				
			},
			onEdit:function(com){
				
			}
	});
	
	formBuilder.addUtility({
		type:"select",
		menu:{
			title:"下拉框",
			cls:"formOption_select"
		},
		tempHtml:'<div class="am-form-group">'
			+'<label>下拉框</label>'
			+'<select  class="am-input-sm">'
			+'<option>选项一</option>'
			+'<option>选项二</option>'
			+'<option>选项三</option>'
			+'</select>'
			+'</div>',
			onAdd:function(com){
				
			},
			onEdit:function(com){
				
			}
	});
	
	formBuilder.addUtility({
		type:"hr",
		menu:{
			title:"分割线",
			cls:"formOption_hr"
		},
		tempHtml:'<div class="am-form-group">'
			+'<label>标题</label>'
			+'<hr style="margin:2px 0px"/>'
			+'<p class="am-form-help">帮助说明...</p>'
			+'</div>',
			onAdd:function(com){
				
			},
			onEdit:function(com){
				
			}
	});
	
	formBuilder.addUtility({
		type:"date",
		menu:{
			title:"日期选择",
			cls:"formOption_date"
		},
		tempHtml:'<div class="am-form-group">'
			+'<label>日期</label>'
			+'<input type="text" class="am-form-field am-input-sm" placeholder="日历组件" data-am-datepicker/>'
			+'</div>',
			onAdd:function(com){
				
			},
			onEdit:function(com){
				
			}
	});
});
